//
// Created by 15548 on 2025/1/8.
//

#ifndef ARMCORE_ENDSTOP_H
#define ARMCORE_ENDSTOP_H

#include <Arduino.h>
#include "config.h"
#include "bsp_motor.h"
extern bool Xcalibrated;
extern bool Ycalibrated;
extern float last_x_g;
extern float last_y_g;
void calibrateX();
void calibrateY();
void endstop_init();
bool X_calibrated();
bool Y_calibrated();
void calibrate();

#endif // ARMCORE_ENDSTOP_H
